FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
WORKDIR /app
EXPOSE 80

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
WORKDIR .
COPY . .

FROM build AS publish
WORKDIR "/src/AbpZero.HttpApi.Host"
RUN dotnet publish "AbpZero.HttpApi.Host.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "AbpZero.HttpApi.Host.dll"]
 